<?php
namespace App\Module\Admin\Request\Works;

use Hyperf\Validation\Request\FormRequest;

class CreateRequest extends FormRequest{

    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'title'=>'required',
            'uri'=>"required|url",
            'child_name'=>'required',
            'child_photo'=>'sometimes|url',
            'content'=>'required',
            'teacher_name'=>'required',
            'teacher_photo'=>'sometimes|url',
            'teacher_comment'=>'required',
        ];
    }
}